package com.bangdream.michelia.entity.courses;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class CourseInfoBean implements Parcelable {


    /**
     * id : 710b446f938a4ec0a086da195bccc47d
     * createBy : 824862c2d95a4ed7984e9e0b11eb0551
     * createTime : 2018-08-18 06:54:00
     * updateBy : 824862c2d95a4ed7984e9e0b11eb0551
     * updateTime : 2018-08-29 16:28:24
     * delFlag : 0
     * orgId : a
     * createName : yedan
     * name : 免费课程easy
     * faceUrl : http://inesa-test.oss-cn-shanghai.aliyuncs.com/byl/1534143272488462289.jpg
     * title : 这是课程短说明
     * courseClassifiId : 9450ef95179941a384e678508143b870
     * publicState : 2
     * period : 285
     * isOrder : 1
     * status : 0
     * viewCount : 0
     * collectCount : 1
     * buyCount : 0
     * learnCount : 5
     * chapterCount : 1
     * pageNumber : 0
     * introduction : <p><img src="http://inesa-test.oss-cn-shanghai.aliyuncs.com/f3e4370375744812a34dd6f68e840688.jpg" title="f3e4370375744812a34dd6f68e840688.jpg"/><br/></p><p><img src="http://inesa-test.oss-cn-shanghai.aliyuncs.com/d21fdb707f554080a1d68775f2b86038.jpg" title="d21fdb707f554080a1d68775f2b86038.jpg"/></p><p><br/></p><p><br/></p><p><br/></p><p><br/></p><p><br/></p><p><br/></p>
     * isPushPlat : 2
     * coursePriceList : [{"id":"05385f7d60f343a2b1e0730e2c06945a","createBy":"824862c2d95a4ed7984e9e0b11eb0551","createTime":"2018-08-29 13:04:37","updateBy":"824862c2d95a4ed7984e9e0b11eb0551","updateTime":"2018-08-29 13:04:37","delFlag":"0","orgId":"a","createName":"admin","courseId":"710b446f938a4ec0a086da195bccc47d","price":0}]
     * learnStatus : 1
     * learnHour : 13
     * per : 4.6
     * collectId :
     * chapterInfos : [{"id":"8d3f927626014fb78d1ff250122dc5fa","createBy":"824862c2d95a4ed7984e9e0b11eb0551","createTime":"2018-08-29 13:04:37","updateBy":"824862c2d95a4ed7984e9e0b11eb0551","updateTime":"2018-08-29 13:04:37","delFlag":"0","orgId":"a","courseId":"710b446f938a4ec0a086da195bccc47d","name":"111","number":1,"allHour":13.93,"sourceList":[{"id":"c7e48ca2d888451e8b4a3b34a52ae5e2","createBy":"824862c2d95a4ed7984e9e0b11eb0551","createTime":"2018-08-29 13:04:37","updateBy":"824862c2d95a4ed7984e9e0b11eb0551","updateTime":"2018-08-29 13:04:37","delFlag":"0","orgId":"a","courseId":"710b446f938a4ec0a086da195bccc47d","chapterId":"8d3f927626014fb78d1ff250122dc5fa","sourceId":"1ba8302a3a1346dfae1e634a619f3f01"}],"status":"2","learnHour":13.93,"per":100,"chapterLearnId":"db556b403d0a4cfe9f26695c1c9b2af0"},{"id":"9b25fe3f2be648c0b24c282767606dce","createBy":"824862c2d95a4ed7984e9e0b11eb0551","createTime":"2018-08-29 13:04:37","updateBy":"824862c2d95a4ed7984e9e0b11eb0551","updateTime":"2018-08-29 13:04:37","delFlag":"0","orgId":"a","courseId":"710b446f938a4ec0a086da195bccc47d","name":"222","number":2,"allHour":256.9,"sourceList":[{"id":"9c18bdb114914edea5d3684bc2f34f47","createBy":"824862c2d95a4ed7984e9e0b11eb0551","createTime":"2018-08-29 13:04:37","updateBy":"824862c2d95a4ed7984e9e0b11eb0551","updateTime":"2018-08-29 13:04:37","delFlag":"0","orgId":"a","courseId":"710b446f938a4ec0a086da195bccc47d","chapterId":"9b25fe3f2be648c0b24c282767606dce","sourceId":"9e731d536ef3447db61ed9fd8bd20aa7"}],"status":"0","learnHour":0,"per":0,"chapterLearnId":""},{"id":"7eebc7658db24ac38d33ff8f53cfed5d","createBy":"824862c2d95a4ed7984e9e0b11eb0551","createTime":"2018-08-29 13:04:37","updateBy":"824862c2d95a4ed7984e9e0b11eb0551","updateTime":"2018-08-29 13:04:37","delFlag":"0","orgId":"a","courseId":"710b446f938a4ec0a086da195bccc47d","name":"笔记本","number":3,"allHour":15,"sourceList":[{"id":"6d10cb4ee3bd41299e3298081999e02d","createBy":"824862c2d95a4ed7984e9e0b11eb0551","createTime":"2018-08-29 13:04:37","updateBy":"824862c2d95a4ed7984e9e0b11eb0551","updateTime":"2018-08-29 13:04:37","delFlag":"0","orgId":"a","courseId":"710b446f938a4ec0a086da195bccc47d","chapterId":"7eebc7658db24ac38d33ff8f53cfed5d","sourceId":"9b57402b93694948bd1d4080bc5170b9"}],"status":"0","learnHour":0,"per":0,"chapterLearnId":""}]
     * comment : false
     * buy : true
     * collect : false
     */

    private String id;
    private String createBy;
    private String createTime;
    private String updateBy;
    private String updateTime;
    private String delFlag;
    private String orgId;
    private String createName;
    private String name;
    private String faceUrl;
    private String title;
    private String courseClassifiId;
    private String publicState;
    private String period;
    private String isOrder;
    private String status;
    private int viewCount;
    private int collectCount;
    private int buyCount;
    private int learnCount;
    private int chapterCount;
    private int pageNumber;
    private String introduction;
    private String isPushPlat;
    private String learnStatus;
    private int learnHour;
    private double per;
    private String collectId;
    private boolean comment;
    private String deadline;
    private boolean buy;
    private boolean collect;
    private List<CoursePriceListBean> coursePriceList;
    private List<ChapterInfosBean> chapterInfos;
    private List<TeacherListBean> teacherList;

    public List<TeacherListBean> getTeacherListBeans() {
        return teacherList;
    }

    public void setTeacherListBeans(List<TeacherListBean> teacherList) {
        this.teacherList = teacherList;
    }

    public String getDeadline() {
        return deadline;
    }

    public void setDeadline(String deadline) {
        this.deadline = deadline;
    }

    protected CourseInfoBean(Parcel in) {
        id = in.readString();
        createBy = in.readString();
        createTime = in.readString();
        updateBy = in.readString();
        updateTime = in.readString();
        delFlag = in.readString();
        orgId = in.readString();
        createName = in.readString();
        name = in.readString();
        faceUrl = in.readString();
        title = in.readString();
        courseClassifiId = in.readString();
        publicState = in.readString();
        period = in.readString();
        isOrder = in.readString();
        status = in.readString();
        viewCount = in.readInt();
        collectCount = in.readInt();
        buyCount = in.readInt();
        learnCount = in.readInt();
        chapterCount = in.readInt();
        pageNumber = in.readInt();
        introduction = in.readString();
        isPushPlat = in.readString();
        learnStatus = in.readString();
        learnHour = in.readInt();
        per = in.readDouble();
        collectId = in.readString();
        comment = in.readByte() != 0;
        buy = in.readByte() != 0;
        collect = in.readByte() != 0;
    }

    public static final Creator<CourseInfoBean> CREATOR = new Creator<CourseInfoBean>() {
        @Override
        public CourseInfoBean createFromParcel(Parcel in) {
            return new CourseInfoBean(in);
        }

        @Override
        public CourseInfoBean[] newArray(int size) {
            return new CourseInfoBean[size];
        }
    };

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFaceUrl() {
        return faceUrl;
    }

    public void setFaceUrl(String faceUrl) {
        this.faceUrl = faceUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCourseClassifiId() {
        return courseClassifiId;
    }

    public void setCourseClassifiId(String courseClassifiId) {
        this.courseClassifiId = courseClassifiId;
    }

    public String getPublicState() {
        return publicState;
    }

    public void setPublicState(String publicState) {
        this.publicState = publicState;
    }

    public String getPeriod() {
        return period;
    }

    public void setPeriod(String period) {
        this.period = period;
    }

    public String getIsOrder() {
        return isOrder;
    }

    public void setIsOrder(String isOrder) {
        this.isOrder = isOrder;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getViewCount() {
        return viewCount;
    }

    public void setViewCount(int viewCount) {
        this.viewCount = viewCount;
    }

    public int getCollectCount() {
        return collectCount;
    }

    public void setCollectCount(int collectCount) {
        this.collectCount = collectCount;
    }

    public int getBuyCount() {
        return buyCount;
    }

    public void setBuyCount(int buyCount) {
        this.buyCount = buyCount;
    }

    public int getLearnCount() {
        return learnCount;
    }

    public void setLearnCount(int learnCount) {
        this.learnCount = learnCount;
    }

    public int getChapterCount() {
        return chapterCount;
    }

    public void setChapterCount(int chapterCount) {
        this.chapterCount = chapterCount;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getIsPushPlat() {
        return isPushPlat;
    }

    public void setIsPushPlat(String isPushPlat) {
        this.isPushPlat = isPushPlat;
    }

    public String getLearnStatus() {
        return learnStatus;
    }

    public void setLearnStatus(String learnStatus) {
        this.learnStatus = learnStatus;
    }

    public int getLearnHour() {
        return learnHour;
    }

    public void setLearnHour(int learnHour) {
        this.learnHour = learnHour;
    }

    public double getPer() {
        return per;
    }

    public void setPer(double per) {
        this.per = per;
    }

    public String getCollectId() {
        return collectId;
    }

    public void setCollectId(String collectId) {
        this.collectId = collectId;
    }

    public boolean isComment() {
        return comment;
    }

    public void setComment(boolean comment) {
        this.comment = comment;
    }

    public boolean isBuy() {
        return buy;
    }

    public void setBuy(boolean buy) {
        this.buy = buy;
    }

    public boolean isCollect() {
        return collect;
    }

    public void setCollect(boolean collect) {
        this.collect = collect;
    }

    public List<CoursePriceListBean> getCoursePriceList() {
        return coursePriceList;
    }

    public void setCoursePriceList(List<CoursePriceListBean> coursePriceList) {
        this.coursePriceList = coursePriceList;
    }

    public List<ChapterInfosBean> getChapterInfos() {
        return chapterInfos;
    }

    public void setChapterInfos(List<ChapterInfosBean> chapterInfos) {
        this.chapterInfos = chapterInfos;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(id);
        parcel.writeString(createBy);
        parcel.writeString(createTime);
        parcel.writeString(updateBy);
        parcel.writeString(updateTime);
        parcel.writeString(delFlag);
        parcel.writeString(orgId);
        parcel.writeString(createName);
        parcel.writeString(name);
        parcel.writeString(faceUrl);
        parcel.writeString(title);
        parcel.writeString(courseClassifiId);
        parcel.writeString(publicState);
        parcel.writeString(period);
        parcel.writeString(isOrder);
        parcel.writeString(status);
        parcel.writeInt(viewCount);
        parcel.writeInt(collectCount);
        parcel.writeInt(buyCount);
        parcel.writeInt(learnCount);
        parcel.writeInt(chapterCount);
        parcel.writeInt(pageNumber);
        parcel.writeString(introduction);
        parcel.writeString(isPushPlat);
        parcel.writeString(learnStatus);
        parcel.writeInt(learnHour);
        parcel.writeDouble(per);
        parcel.writeString(collectId);
        parcel.writeByte((byte) (comment ? 1 : 0));
        parcel.writeByte((byte) (buy ? 1 : 0));
        parcel.writeByte((byte) (collect ? 1 : 0));
    }

    public static class CoursePriceListBean implements Parcelable {
        /**
         * id : 05385f7d60f343a2b1e0730e2c06945a
         * createBy : 824862c2d95a4ed7984e9e0b11eb0551
         * createTime : 2018-08-29 13:04:37
         * updateBy : 824862c2d95a4ed7984e9e0b11eb0551
         * updateTime : 2018-08-29 13:04:37
         * delFlag : 0
         * orgId : a
         * createName : admin
         * courseId : 710b446f938a4ec0a086da195bccc47d
         * price : 0
         */

        private String id;
        private String createBy;
        private String createTime;
        private String updateBy;
        private String updateTime;
        private String delFlag;
        private String orgId;
        private String createName;
        private String courseId;
        private double price;

        protected CoursePriceListBean(Parcel in) {
            id = in.readString();
            createBy = in.readString();
            createTime = in.readString();
            updateBy = in.readString();
            updateTime = in.readString();
            delFlag = in.readString();
            orgId = in.readString();
            createName = in.readString();
            courseId = in.readString();
            price = in.readInt();
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(id);
            dest.writeString(createBy);
            dest.writeString(createTime);
            dest.writeString(updateBy);
            dest.writeString(updateTime);
            dest.writeString(delFlag);
            dest.writeString(orgId);
            dest.writeString(createName);
            dest.writeString(courseId);
            dest.writeDouble(price);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public static final Creator<CoursePriceListBean> CREATOR = new Creator<CoursePriceListBean>() {
            @Override
            public CoursePriceListBean createFromParcel(Parcel in) {
                return new CoursePriceListBean(in);
            }

            @Override
            public CoursePriceListBean[] newArray(int size) {
                return new CoursePriceListBean[size];
            }
        };

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCreateBy() {
            return createBy;
        }

        public void setCreateBy(String createBy) {
            this.createBy = createBy;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getUpdateBy() {
            return updateBy;
        }

        public void setUpdateBy(String updateBy) {
            this.updateBy = updateBy;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public String getDelFlag() {
            return delFlag;
        }

        public void setDelFlag(String delFlag) {
            this.delFlag = delFlag;
        }

        public String getOrgId() {
            return orgId;
        }

        public void setOrgId(String orgId) {
            this.orgId = orgId;
        }

        public String getCreateName() {
            return createName;
        }

        public void setCreateName(String createName) {
            this.createName = createName;
        }

        public String getCourseId() {
            return courseId;
        }

        public void setCourseId(String courseId) {
            this.courseId = courseId;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }
    }

    public static class ChapterInfosBean implements Parcelable {
        /**
         * id : 8d3f927626014fb78d1ff250122dc5fa
         * createBy : 824862c2d95a4ed7984e9e0b11eb0551
         * createTime : 2018-08-29 13:04:37
         * updateBy : 824862c2d95a4ed7984e9e0b11eb0551
         * updateTime : 2018-08-29 13:04:37
         * delFlag : 0
         * orgId : a
         * courseId : 710b446f938a4ec0a086da195bccc47d
         * name : 111
         * number : 1
         * allHour : 13.93
         * sourceList : [{"id":"c7e48ca2d888451e8b4a3b34a52ae5e2","createBy":"824862c2d95a4ed7984e9e0b11eb0551","createTime":"2018-08-29 13:04:37","updateBy":"824862c2d95a4ed7984e9e0b11eb0551","updateTime":"2018-08-29 13:04:37","delFlag":"0","orgId":"a","courseId":"710b446f938a4ec0a086da195bccc47d","chapterId":"8d3f927626014fb78d1ff250122dc5fa","sourceId":"1ba8302a3a1346dfae1e634a619f3f01"}]
         * status : 2
         * learnHour : 13.93
         * per : 100
         * chapterLearnId : db556b403d0a4cfe9f26695c1c9b2af0
         */

        private String id;
        private String createBy;
        private String createTime;
        private String updateBy;
        private String updateTime;
        private String delFlag;
        private String orgId;
        private String courseId;
        private String name;
        private int number;
        private String allHour;
        private String status;
        private double learnHour;
        private String per;
        private String chapterLearnId;
        private List<SourceListBean> sourceList;

        protected ChapterInfosBean(Parcel in) {
            id = in.readString();
            createBy = in.readString();
            createTime = in.readString();
            updateBy = in.readString();
            updateTime = in.readString();
            delFlag = in.readString();
            orgId = in.readString();
            courseId = in.readString();
            name = in.readString();
            number = in.readInt();
            allHour = in.readString();
            status = in.readString();
            learnHour = in.readDouble();
            per = in.readString();
            chapterLearnId = in.readString();
        }

        public static final Creator<ChapterInfosBean> CREATOR = new Creator<ChapterInfosBean>() {
            @Override
            public ChapterInfosBean createFromParcel(Parcel in) {
                return new ChapterInfosBean(in);
            }

            @Override
            public ChapterInfosBean[] newArray(int size) {
                return new ChapterInfosBean[size];
            }
        };

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCreateBy() {
            return createBy;
        }

        public void setCreateBy(String createBy) {
            this.createBy = createBy;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getUpdateBy() {
            return updateBy;
        }

        public void setUpdateBy(String updateBy) {
            this.updateBy = updateBy;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public String getDelFlag() {
            return delFlag;
        }

        public void setDelFlag(String delFlag) {
            this.delFlag = delFlag;
        }

        public String getOrgId() {
            return orgId;
        }

        public void setOrgId(String orgId) {
            this.orgId = orgId;
        }

        public String getCourseId() {
            return courseId;
        }

        public void setCourseId(String courseId) {
            this.courseId = courseId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        public String getAllHour() {
            return allHour;
        }

        public void setAllHour(String allHour) {
            this.allHour = allHour;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public double getLearnHour() {
            return learnHour;
        }

        public void setLearnHour(double learnHour) {
            this.learnHour = learnHour;
        }

        public String getPer() {
            return per;
        }

        public void setPer(String per) {
            this.per = per;
        }

        public String getChapterLearnId() {
            return chapterLearnId;
        }

        public void setChapterLearnId(String chapterLearnId) {
            this.chapterLearnId = chapterLearnId;
        }

        public List<SourceListBean> getSourceList() {
            return sourceList;
        }

        public void setSourceList(List<SourceListBean> sourceList) {
            this.sourceList = sourceList;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeString(id);
            parcel.writeString(createBy);
            parcel.writeString(createTime);
            parcel.writeString(updateBy);
            parcel.writeString(updateTime);
            parcel.writeString(delFlag);
            parcel.writeString(orgId);
            parcel.writeString(courseId);
            parcel.writeString(name);
            parcel.writeInt(number);
            parcel.writeString(allHour);
            parcel.writeString(status);
            parcel.writeDouble(learnHour);
            parcel.writeString(per);
            parcel.writeString(chapterLearnId);
        }

        public static class SourceListBean {
            /**
             * id : c7e48ca2d888451e8b4a3b34a52ae5e2
             * createBy : 824862c2d95a4ed7984e9e0b11eb0551
             * createTime : 2018-08-29 13:04:37
             * updateBy : 824862c2d95a4ed7984e9e0b11eb0551
             * updateTime : 2018-08-29 13:04:37
             * delFlag : 0
             * orgId : a
             * courseId : 710b446f938a4ec0a086da195bccc47d
             * chapterId : 8d3f927626014fb78d1ff250122dc5fa
             * sourceId : 1ba8302a3a1346dfae1e634a619f3f01
             */

            private String id;
            private String createBy;
            private String createTime;
            private String updateBy;
            private String updateTime;
            private String delFlag;
            private String orgId;
            private String courseId;
            private String chapterId;
            private String sourceId;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCreateBy() {
                return createBy;
            }

            public void setCreateBy(String createBy) {
                this.createBy = createBy;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public String getUpdateBy() {
                return updateBy;
            }

            public void setUpdateBy(String updateBy) {
                this.updateBy = updateBy;
            }

            public String getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(String updateTime) {
                this.updateTime = updateTime;
            }

            public String getDelFlag() {
                return delFlag;
            }

            public void setDelFlag(String delFlag) {
                this.delFlag = delFlag;
            }

            public String getOrgId() {
                return orgId;
            }

            public void setOrgId(String orgId) {
                this.orgId = orgId;
            }

            public String getCourseId() {
                return courseId;
            }

            public void setCourseId(String courseId) {
                this.courseId = courseId;
            }

            public String getChapterId() {
                return chapterId;
            }

            public void setChapterId(String chapterId) {
                this.chapterId = chapterId;
            }

            public String getSourceId() {
                return sourceId;
            }

            public void setSourceId(String sourceId) {
                this.sourceId = sourceId;
            }
        }
    }
}
